package com.xcdh.commons.spring.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class XCDHHTTPRequestLog implements XCDHAspectInter{
    @Override
    public void before(ProceedingJoinPoint joinPoint) {
        String className = joinPoint.getTarget().getClass().getSimpleName();
        String methodName = joinPoint.getSignature().getName();
        Object[] args = joinPoint.getArgs();
        log.info("请求方法:{}.{},请求的参数：{}",className , methodName ,args);
    }
}
